package com.zt.english.adapter

import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.BaseAdapter
import android.widget.TextView
import com.zt.english.R
import se.emilsjolander.stickylistheaders.StickyListHeadersAdapter

/**
Desc:词库粘性头列表适配器
Author:ZT
Date:2021/1/22
 */
class StickListWordLibAdapter(val context:Context): BaseAdapter(),StickyListHeadersAdapter {
    private val inflater = LayoutInflater.from(context)

    override fun getView(position: Int, convertView: View?, parent: ViewGroup?): View {
        val view = inflater.inflate(R.layout.activity_word_info, null)
        return view
    }

    override fun getItem(position: Int): Any {
        return position
    }

    override fun getItemId(position: Int): Long {
        return 1
    }

    override fun getCount(): Int {
       return 1
    }

    override fun getHeaderId(position: Int): Long {
        return 1
    }

    override fun getHeaderView(position: Int, convertView: View?, parent: ViewGroup?): View {
        val view = inflater.inflate(R.layout.activity_word_info, null)
        return view
    }
    inner class HeaderViewHolder{
        protected val titleTv:TextView?=null
    }
    inner class ItemViewHolder{

    }
}